<template>
  <div>
    <h3 id = "user_show"></h3>
  </div>
</template>

<script>
  export default {
    name: 'ShowUser',
    created: function() {
      console.log(localStorage.getItem("user_name").name);
      if(localStorage.getItem("user_name").name != null) {
          document.getElementById("user_show").innerHTML = localStorage.getItem("user_name").name + " 已登录";
      }
    },
    methods: {

    }
  }

</script>

<style>
</style>
